package com.wuzu.ecommerce.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品表(Good)实体类
 *
 * @author jsm
 * @since 2023-03-26 17:23:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_good")
public class Good implements Serializable {
    private static final long serialVersionUID = -92393182974776381L;
    /**
     * 序号，id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 类目id
     */
    @TableField(value = "class_id")
    private Integer classId;

    /**
     * 商品图
     */
    @TableField(value = "imgurl")
    private String imgurl;

    /**
     * 商品描述
     */
    @TableField(value = "info")
    private String info;

    /**
     * 库存扣减方式（下单减，付款减）
     */
    @TableField(value = "reduce_type")
    private Integer reduceType;

    /**
     * 配送方式（快递发货，到店自提）
     */
    @TableField(value = "distribution_pattern")
    private Integer distributionPattern;

    /**
     * 快递运费
     */
    @TableField(value = "fare")
    private String fare;

    /**
     * 售后服务（申请换货，7天无理由退款，极速退款）
     */
    @TableField(value = "aftercare")
    private String aftercare;

    /**
     * 发布时间
     */
    @TableField(value = "release_time")
    private Date releaseTime;

    /**
     * 浏览量
     */
    @TableField(value = "looks")
    private Integer looks;

    /**
     * 下架
     */
    @TableField(value = "removed")
    private Integer removed;

    /**
     * 商品状态（销售中，已售空）
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 物流id
     */
    @TableField(value = "logid")
    private Integer logid;

    /**
     * 门店id
     */
    @TableField(value = "sid")
    private Integer sid;
}
